ROTATE CAMERA

This command will rotate the camera around its X, Y and Z axis.

  Syntax
ROTATE CAMERA XAngle, YAngle, ZAngle
ROTATE CAMERA Camera Number, XAngle, YAngle, ZAngle
ROTATE CAMERA Camera Number, Vector
  Parameters
Camera Number
Integer
The camera number
XAngle
Float
The camera X axis
YAngle
Float
The camera Y axis
ZAngle
Float
The camera Z axis

  Returns

This command does not return a value.

  Description

The angle values should be real numbers.

  Example Code
autocam on:backdrop off
make matrix 1,4000,4000,100,100
set matrix height 1,50,50,500
update matrix 1
point camera 0,0,0,0
while mouseclick()<>1
set cursor 0,0
x#=x#+mousemovey() : y#=y#+mousemovex() : z#=z#+mousemovez()
rotate camera 0,x#,y#,z#
endwhile
while mouseclick()=1 : endwhile
color backdrop rgb(128,0,0):backdrop on:delete matrix 1:autocam off
end
  See also

CAMERA Commands Menu
Index